/*
** my_putnbr_base.c for  in /home/gueux_g/projet/code_source
**
** Made by gregory gueux
** Login   <gueux_g@epitech.net>
**
** Started on  Thu Oct 11 17:52:04 2012 gregory gueux
** Last update Mon Nov 12 15:47:55 2012 gueux-g
*/

void    my_putnbr_base(int nb, char *base)
{
  if (nb < 0)
    {
      nb = (-1) * nb;
      my_putchar('-');
    }
  if (nb >= my_strlen(base))
    my_putnbr_base(nb / my_strlen(base), base);
  my_putchar(base[nb % my_strlen(base)]);
}
